package com.xiyu.service.vo.health.medicine.baseVO;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import jakarta.validation.constraints.*;
import org.hibernate.validator.constraints.*;
import jakarta.validation.constraints.NotEmpty;
import org.springframework.format.annotation.DateTimeFormat;
import static com.xiyu.service.util.date.DateUtils.FORMAT_YEAR_MONTH_DAY_HOUR_MINUTE_SECOND;
import java.time.LocalDateTime;

/**
 * 药品档案 Base VO，提供给添加、修改、详细的子 VO 使用
 * 如果子 VO 存在差异的字段，请不要添加到这里，影响 Swagger 文档生成
 */
@Data
public class HealthMedicineBase {

    @Schema(description = "药品名称")
    @Size(max = 100, message = "药品名称长度不能超过100")
    private String medicineName;

    @Schema(description = "药品简码")
    @Size(max = 100, message = "药品简码长度不能超过100")
    private String medicineBrevityCode;

    @Schema(description = "类型")
    @Range(max = 127, message = "类型最大不能超过127")
    private Integer medicineType;

    @Schema(description = "规格")
    @Size(max = 100, message = "规格长度不能超过100")
    private String medicineSpecification;

    @Schema(description = "剂型")
    @Range(max = 127, message = "剂型最大不能超过127")
    private Integer medicineDosageForm;

    @Schema(description = "生产厂家")
    @Size(max = 255, message = "生产厂家长度不能超过255")
    private String manufacturer;

}
